package com.arykow.engine.onwebapp.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class ToolbarContainer extends Composite {

	private static ToolbarContainerUiBinder uiBinder = GWT.create(ToolbarContainerUiBinder.class);

	interface ToolbarContainerUiBinder extends UiBinder<Widget, ToolbarContainer> {
	}

	private ApplicationEntryPoint applicationEntryPoint;

	public ToolbarContainer(ApplicationEntryPoint applicationEntryPoint) {
		initWidget(uiBinder.createAndBindUi(this));
		this.applicationEntryPoint = applicationEntryPoint;
		addFeed.setText("S'abonner");
	}

	@UiField
	Button addFeed;

	@UiHandler("addFeed")
	void onClick(ClickEvent e) {
		Window.alert("Hello!");
	}

}
